package com.demo.gulimall.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.gulimall.auth.entity.Member;
import com.demo.gulimall.auth.exception.OptionException;
import com.demo.gulimall.auth.vo.MemberRegVo;
import com.demo.gulimall.common.utils.R;
import org.springframework.stereotype.Service;

/**
 * @author Chen Yuan
 */

@Service
public interface MemberService extends IService<Member> {

	void checkMemberUserNameUnique(String userName)  throws OptionException;
	void checkMemberPhoneUnique(String phone)  throws OptionException;

	public R memberReg(MemberRegVo memberReg) throws OptionException;
}
